package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 餐车实体层
 * @author zhaojw
 *
 */
@Entity
@Table(name="jm_foodcart")
public class FoodCart implements Serializable {

	
	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name="cart_id",strategy="uuid")
	@GeneratedValue(generator="cart_id")
	@Column(name="cart_id",nullable=false,unique=true,length=32)
	private String cartId;//餐车id
	@Column(name="menu_num",nullable=false,length=32)
	private Integer menuNum;//订餐数量
	@Column(name="user_id",nullable=false,length=32)
	private String userId;//用户id
	@Column(name="menu_id",nullable=false,length=32)
	private String menuId;//菜单id
	@Column(name="menu_price",nullable=false,length=32)
	private double menuPrice;//菜单现价
	@Column(name="menu_totalPrice",nullable=false,length=32)
	private double menuTotalPrice;//菜单合计金额
	@Column(name="menu_name",nullable=false,length=32)
	private String menuName;//菜单名称
	public String getCartId() {
		return cartId;
	}
	public void setCartId(String cartId) {
		this.cartId = cartId;
	}
	public Integer getMenuNum() {
		return menuNum;
	}
	public void setMenuNum(Integer menuNum) {
		this.menuNum = menuNum;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public double getMenuPrice() {
		return menuPrice;
	}
	public void setMenuPrice(double menuPrice) {
		this.menuPrice = menuPrice;
	}


	public double getMenuTotalPrice() {
		return menuTotalPrice;
	}
	public void setMenuTotalPrice(double menuTotalPrice) {
		this.menuTotalPrice = menuTotalPrice;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	

}
